@import "theme/common/color";

body * {
    font-family: PingFangSC, helvetica neue, hiragino sans gb, arial, microsoft yahei ui, microsoft yahei, simsun, sans-serif !important;
    box-sizing: border-box;
}

body, button, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, hr, input, li, ol, p, td, textarea, th, ul {
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    background-color: #f0f2f5;
    color: #657180;
}


/**** 全局样式 *****/

html, body, .main {
    height: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(144, 147, 153, .5);
}

a {
    color: $blue-6;
    text-decoration: none;
    cursor: pointer;
}

.left {
    float: left;
}

.right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.r5 {
    margin-right: 5px;
}

.l5 {
    margin-left: 5px;
}

.r10 {
    margin-right: 10px;
}

.clear:after {
    content: " ";
    display: block;
    clear: both;
}

.relative {
    position: relative;
}

.block {
    display: inline-block;
}

.red {
    color: $red-6;
}

.blue {
    color: $blue-6;
}

.green {
    color: $green-6;
}
.purple{
  color:$purple-6;
}
.orange{
  color:$orange-6;
}
.gray{
  color:$gray-5;
}
.pre-line {
    white-space: pre-line;
}
@keyframes turn{
  0%{-webkit-transform:rotate(0deg);}
  25%{-webkit-transform:rotate(90deg);}
  50%{-webkit-transform:rotate(180deg);}
  75%{-webkit-transform:rotate(270deg);}
  100%{-webkit-transform:rotate(360deg);}
}
.el-icon-loading{
  animation:turn 1s linear infinite;      
}
.w200 {
    width: 200px;
}
.el-tag{
  cursor: default;
}
.pointer{
  cursor: pointer;
}
//抽屉页面可以滚动
.el-drawer__body{
  overflow-y: auto
}
.el-button{
  margin-left:5px;
}
//自定义标签
.text-info{
  background-color:#d9edf7;
  padding: 15px
}
// 自定义表格
.table {
    width: 100%;
    border-spacing: 0;
}

.table.border {
    border: 1px solid #e9e9e9;
    border-right: 0;
    border-bottom: 0;
}

.table td, .table th {
    padding: 8px 16px;
}

.table.border td, .table.border th {
    border: 1px solid #e9e9e9;
    border-left: 0;
    border-top: 0;
}

.table th {
    background: #f7f7f7;
    white-space: nowrap;
    color: #5c6b77;
    font-weight: 600;
    text-align: left;
}

/*********** 全局结束 ***********/
/*********** 顶部导航开始 ***********/
.header {
    background-color: #ffffff;
    height: 48px;
    padding: 0;
    width: 100%;
    z-index: 1;

    .header-logo {
        display: inline-block;
        width: 200px;
        height: 48px;
        line-height: 48px;
        font-size: 18px;
        color: #ffffff;
        background-color: #002140;
    }

    .header-user {
        display: inline-block;
        height: 40px;
        line-height: 40px;
        margin-right: 10px;
        margin-top: 5px;
        padding: 0 10px;
        //color: #ffffff;
        cursor: pointer;
    }
}

/*********** 顶部导航结束 ***********/
/*********** 左侧菜单结束 ***********/
.slide-menu {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 0;
    width: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1;
    border: 0;

    .el-submenu, .el-menu-item {
        margin: 4px 0;
    }

    .el-submenu__title, .el-menu-item {
        height: 40px;
        line-height: 40px;
        padding-right: 20px;

        &:hover, &:focus {
            * {
                color: #ffffff;
            }
        }
    }

    .el-menu-item.is-active {
        background-color: #1890ff !important;
    }
}

/*********** 左侧菜单结束 ***********/
/*********** tab标签页 ***********/
#menu-tabs {
    position: fixed;
    top: 48px;
    left: 200px;
    right: 0;
    z-index: 1;
    height: 40px;
    overflow: hidden;
    box-shadow: none;
    border-width: 0;

    .el-tabs__nav-wrap {
        height: 40px;
        margin: 0;
    }

    .el-tabs__header .el-tabs__item {
        height: 32px;
        line-height: 32px;
        margin-top: 4px;
        background-color: #ffffff;
        border-radius: 2px;
        overflow: hidden;
        border: 0;
        box-shadow: 0 0 2px rgba(0,0,0,.1);
        margin-left: 5px;
        padding: 0 15px;

        &.is-active {
            background-color: $blue-6;
            color: #ffffff ;
        }
    }
}

/*********** tab标签页结束 ***********/
/*********** 数据内容 ***********/
.data {
    position: fixed;
    left: 200px;
    top: 89px;
    bottom: 0;
    right: 0;
    overflow: auto;
    z-index: 1;
}

.data-info {
    margin: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 2px;
}

.condition {
    margin-bottom: 15px;

    .item {
        display: inline-block;
        padding-right: 5px;
        vertical-align: bottom;
    }
}

.page {
    text-align: center;
    padding-top: 15px !important;
}

/*********** 数据内容结束 ***********/
/*********** 上传开始 ***********/
.multiple-image {
    .multiple-btn {
        display: inline-block;
        width: 80px;
        height: 80px;
        line-height: 80px;
        border-radius: 2px;
        border: 1px dashed $gray-5;

        .el-upload {
            width: 100%;
        }

        &:hover {
            border-color: $blue-6;
            color: $blue-6;
        }
    }

    .lists {
        padding: 0;
        margin: 0;
        display: inline;
    }

    li {
        display: inline-block;
        list-style: none;
        margin-right: 10px;
        width: 80px;
        height: 80px;
        vertical-align: top;
        position: relative;
        border-radius: 2px;
        overflow: hidden;
        cursor: pointer;

        img {
            width: 100%;
            height: 100%;
            display: block;
        }

        &:hover .action {
            display: table;
        }
    }

    .action {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        line-height: 40px;
        background-color: rgba(0, 0, 0, .75);
        display: none;

        &.single {
            display: table;

            span {
                display: table-cell;
                vertical-align: middle;
            }

        }

        span {
            display: inline-block;
            height: 40px;
            width: 40px;
            text-align: center;
            font-size: 18px;
            color: #ffffff;

            &:hover {
                color: $blue-6;
            }
        }
    }


    .progress {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, .35);

        .progress {
            background-color: rgba(0, 0, 0, .75);
        }
    }
}

.img-preview-box {
    max-width: 50%;
    max-height: 90%;
    overflow: auto;
    width: auto;
    padding: 10px;

    img {
        display: block;
        max-width: 100%;
    }

    .el-message-box__content {
        padding: 0;
    }
}

.img-preview {
    cursor: pointer;
    max-width: 50px;
    max-height: 50px;
}

/*********** 上传结束 ***********/
/*********** 排序数字开始 ***********/
.sequence {
    display: inline;

    .sure-btn {
        font-size: 20px;
        cursor: pointer;
        vertical-align: middle;
    }
}

/*********** 排序数字结束 ***********/
